﻿using orders.Model;
using orders.Repository;
using System.Collections.Generic;

namespace orders.Service.Impl
{
    public class OrderService : IOrderService
    {
        private readonly IOrderRepository _orderRepository;
        public OrderService(IOrderRepository orderRepository)
        {
            _orderRepository = orderRepository;
        }

        public List<OrderDetail> GetOrderDetailList()
        {
            return _orderRepository.GetOrderDetails();
        }
    }
}
